<!doctype html>
<html lang="zh">
  <head>
    <meta charset="utf-8"/>
    <title>Dynamic create object</title>
  </head>
  <body>
    <div id="testDiv">test div</div>
    <script type="text/javascript">
      document.getElementById("testDiv").innerHTML = "<div style=\"border:solid 1px #FF0000\">dynamic created div</div>";
    </script>
  </body>
</html>